package com.csgc.camera.bean

import android.os.Parcelable
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import kotlinx.android.parcel.Parcelize

@JsonClass(generateAdapter = true)
@Parcelize
data class UserInfo(
    val userId:Long,
    val userType:Int,//1手机用户 2微信用户
    val phone:String?,
    val token:String,
    val validFlag:Int,//1正常 0注销
    var vipType:Int,//0非会员 1永久会员 2 年度会员 3季度会员 4月度会员
    var vipTime:String?,//vip 到期时间
    @Json(name = "nickName")
    var userName:String?,
    @Json(name = "headImgurl")
    var userPhoto:String?
): Parcelable

@JsonClass(generateAdapter = true)
data class VipType(val productId:Int,
                   val productName:String,
                   val productType:Int,
                   val productPrice:Int,
                   val salePrice:Int,
                   val specialPrice:Int,
                   val productDesc:String?,
)

